package com.jcsz.gulimall.auth.feign;

import com.jcsz.common.utils.R;
import com.jcsz.common.vo.MemberLoginVo;
import com.jcsz.gulimall.auth.vo.UserLoginVo;
import com.jcsz.gulimall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @className: MemberFeignService
 * @author: 一把Po吉他
 * @date: 2022/11/8 17:21
 * @version: 1.0
 **/
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    public R regist(@RequestBody UserRegistVo userRegistVo);

    @PostMapping("//member/member/login")
    public R login(@RequestBody UserLoginVo userLoginVo);
//
//    @PostMapping("/member/member/oauth/login")
//    public R oauthLogin(@RequestBody SocialUserVo vo);
}
